package org.ea4rct.ealog.views;


import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Layout;
import org.eclipse.swt.widgets.Spinner;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.part.ViewPart;

import org.eclipse.swt.*;
import org.eclipse.swt.events.*;
import org.eclipse.swt.layout.*;
import org.eclipse.swt.widgets.*;


public class Calendar extends ViewPart {
	
	public static final String ID = "org.ea4rct.ealog.views.calendar";

	public Calendar() {
		super();
	}

	@Override
	public void createPartControl(Composite parent) {
		Composite container = new Composite(parent, SWT.NULL);
        GridLayout layout = new GridLayout();
        container.setLayout(layout);
        layout.numColumns = 1;
        layout.verticalSpacing = 9;
        
        DateTime calendar = new DateTime (container, SWT.CALENDAR);
    	calendar.addSelectionListener (new SelectionAdapter () {
    		public void widgetSelected (SelectionEvent e) {
    			System.out.println ("calendar date changed");
    		}
    	});
	}

	@Override
	public void setFocus() {
		// TODO Auto-generated method stub

	}

}
